package dns;

import java.util.Comparator;
import org.xbill.DNS.MXRecord;

public class MxComparator implements Comparator<MXRecord>{

	@Override
	public int compare(MXRecord o1, MXRecord o2) {
		return o1.getPriority() - o2.getPriority();
	}

}
